<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<%@include file="/views/common/include/taglib.jsp"%>
<%@include file="/views/common/include/head.jsp"%>
<link rel="stylesheet" href="${ctx}/css/page/header2.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/page/reset.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/page/zixun.css" type="text/css">
<link rel="stylesheet" href="${ctx}/css/page/footer.css" type="text/css">
</head>
<body>
<script type="text/javascript">
    var ctx = '${ctx}';
</script>
    <jsp:include page="/views/common/head_main.jsp" />
    <div class="bg">
        <div class="contentbox1 contentbox">
            <img src="${ctx}/images/page/zixun.png">  
        </div>
        <div class="contentbox2 contentbox">
            <div class="wid">
                <div class="zixun3"><img src="${ctx}/images/page/zixun3.png"></div>
                <div class="areanotice">
                    <img class="notice" src="${ctx}/images/page/xiaoqutongzhi.jpg">
                    <ul>
                    	<c:forEach items="${noticeInfos }" var="noticeInfo" varStatus="noticeInfoStatus">
                        	<li class="noticecotent">
                        		<a href="${ctx}/noticeInfo/noticeInfoDetail?id=${noticeInfo.id}">
                        		<span class="niTit">${fn:substring(noticeInfo.title , 0 , 15)}<c:if test="${fn:length(noticeInfo.title) > 15}">...</c:if></span>
                        		<span class="date"><fmt:formatDate value="${noticeInfo.updateTime}" pattern="yyyy.MM.dd"/></span>
                        		</a><hr/>
                        	</li>
                    	</c:forEach>
                    </ul>
                    <a href="${ctx}/noticeInfo/noticeInfoList">
                    	<h3 class="more">更多...</h3>
                    </a>
                 </div>
            </div>
            
            <div class="community">
                <img src="${ctx}/images/shequzw.jpg">
                <div class="showpic">
                    <div class="picbox">
                    	<c:forEach items="${cellManuals }" var="cellManual" varStatus="cellManualStatus">
                            <div class="manualinfo">
                           		<a href="${ctx}/cellManual/cellManualDetail?id=${cellManual.id}">
                           			<!-- 通知logo -->
    	                        	<c:if test="${not empty cellManual.logo}">
    	                       	 		<img class="big" src="${sessionScope.image_logo}${cellManual.logo}"/>
    	                       	 	</c:if>
    	                       	 	<!-- 默认通知logo -->
    	                        	<c:if test="${empty cellManual.logo}">
    	                       	 		<img class="big" src="${ctx}/images/page/default.jpg"/>
    	                       	 	</c:if>
                           			<span class="text">
                           			${fn:substring(cellManual.title , 0 , 8)}<c:if test="${fn:length(cellManual.title) > 8}">...</c:if>
                           			<%-- ${cellManual.title} --%></span>
                           		</a>
                            </div>
                    	</c:forEach>
                    </div>
                </div>
                <a href="${ctx}/cellManual/cellManualList"><img class="findmore"src="${ctx}/images/page/z9.png"></a>
                
            </div>
            <div class="bianmin">
                <img class="chuanglian" src="${ctx}/images/page/bm.png">
                <div class="padd">
                <c:if test="${fn:length(yellowPages) > 0 }">
						<div class="left">
							<c:forEach begin="0" end="${fn:length(yellowPages)/2-1 }" var="i" >
								<c:set var="item" value="${(yellowPages)[i]}"/>
			                    <div class="box">
		                            <img class="logoPic" src="${ctx}/images/news/yellowPage/logo.png">
		                            <span>
		                                <p class="textcolor">${item.pageName}</p>
		                                <hr/>
		                                <p>地址：${item.addr}</p>
		                                <p>电话：${item.phone0}</p>
		                            </span>
			                    </div>
		                	</c:forEach>
			            </div>
			            <c:if test="${fn:length(yellowPages) > 1 }">
				            <div class="right">
								<c:forEach begin="${fn:length(yellowPages)/2 }" end="${fn:length(yellowPages)-1 }" var="i" >
									<c:set var="item" value="${(yellowPages)[i]}"/>
				                    <div class="box">
			                            <img class="logoPic" src="${ctx}/images/news/yellowPage/logo.png">
			                            <span>
			                                <p class="textcolor">${item.pageName}</p>
			                                <hr/>
			                                <p>地址：${item.addr}</p>
			                                <p>电话：${item.phone0}</p>
			                            </span>
				                    </div>
				                </c:forEach>
				            </div>
		            	</c:if>
		            </c:if>
                    <a href="${ctx}/yellowPage/yellowPageList"><img class="findmore"src="${ctx}/images/page/more.png"></a>
                </div>
            </div>  
        </div>
    </div>
    <jsp:include page="/views/common/footer.jsp" />
    <!-- 解决ie 6 7 8 9不能显示placeholder的问题 -->
    <script src="${ctx}/js/lib/jquery.JPlaceholder.js"></script>
</body>
</html>